<%@ include file="/WEB-INF/tiles/include.jsp"%>
<div>
<script type="text/javascript">
	var server_array_menucode = [<%=arrMenuCode%>];
	$(document).ready(function() {
		if(array_menucode){
			$('#header_title_text').text('<%=request.getSession().getAttribute("PAGE_TITLE")==null?"HOME":request.getSession().getAttribute("PAGE_TITLE").toString().toUpperCase()%>');
			if(server_array_menucode.length != array_menucode.length){
				$.wis.util.doRenderContent(renderMenuUrl,"#menuContent");
				array_menucode = server_array_menucode;	
				return;
			}
			else{
				for(var i=0;i<server_array_menucode.length;i++)
				{
					if(array_menucode.indexOf(server_array_menucode[i]) == -1)
					{
						$.wis.util.doRenderContent(renderMenuUrl,"#menuContent");
						break;
					}
				}
				array_menucode = server_array_menucode;	
				return;
			}	
		}

		array_menucode = server_array_menucode;	
	});		
</script>
<tiles:insert attribute="content" />
</div>